﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EmpleadoListGrid.ascx.cs" 

Inherits="UILGestion.Seguridad.Empleado.EmpleadoListGrid" %>


<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>

<asp:Panel runat="server" ID="PanelRecepcion" >
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header">
            <tr id="Tr1" runat="server">
               
                
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" ForeColor="Blue" CommandArgument="fechaEmision" runat="server">DESCRIPCION</asp:LinkButton>
                </th>
                
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" ForeColor="Blue" CommandArgument="telefono" runat="server">TELEFONO</asp:LinkButton>
                </th>
                
                  <th id="Th9" runat="server">
                    <asp:LinkButton ID="LinkButton7" CommandName="Sort" ForeColor="Blue" CommandArgument="email" runat="server">EMAIL</asp:LinkButton>
                </th>
                  <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton3"  CommandName="Sort" CommandArgument="tieneAcceso" ForeColor="Blue" runat="server">ACTIVO</asp:LinkButton>
                </th>
                <th id="Th10" runat="server">
                    <asp:LinkButton ID="LinkButton8"  CommandName="Sort" CommandArgument="usuario" ForeColor="Blue" runat="server">USUARIO</asp:LinkButton>
                </th>
                
                <th id="Th7" runat="server">
                    <asp:LinkButton ID="LinkButton5" CommandName="Sort" ForeColor="Blue" runat="server"></asp:LinkButton>
                </th>
                
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#fff":"#eee" %>'>
            <td >
               <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"descripcion").ToString()%>'  
                 Target="_self"  ID="OrdenCompra"
                NavigateUrl='<%# "EmpleadoReadForm.aspx?id=" + DataBinder.Eval (Container.DataItem,"idInternal").ToString() %>' 
               />   
            </td>
            <td width="100px">
                        <%# Eval("telefono")%> <br />
                       
            </td>
             <td  width="200px">
                            <%# Eval("email")%><br />
            </td>
            <td  width="50px">
                            <input id="Checkbox2" type="checkbox" runat="server" 
                checked= '<%# Eval("bitActivo")%>' disabled="disabled">
            </td>
          
             <td width="100px">
                  <%# Eval("usuario")%>
            </td>
              
            
           <td width="45px" align="right">
                

              <asp:Hyperlink runat= "server"  ForeColor="Blue" ImageUrl="~/Images/listing/ico-edit.png"
                 Target="_self"  ID="Hyperlink1" 
                NavigateUrl='<%# "EmpleadoEditForm.aspx?type=E&id=" + DataBinder.Eval (Container.DataItem,"idInternal").ToString() %>' 
               /> 
                 
            </td>
           <td width="45px" align="right">
                
                <asp:ImageButton ID="lnkRemove" runat="server" BorderColor="Control" 
                     CommandArgument='<%# Eval("idInternal")%>' ImageUrl="../../Images/delete.gif" 
                     OnClick="Deleteitem" OnClientClick="return confirm('Usted quiere eliminar?')" />
                                        
                 
            </td>
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" >
            <tr>
                <td>
                   <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>



</asp:Panel>

    
     